<?php
namespace App\Services\Gongmall;


class UserSign extends BaseService {


     // 获取合同模版
     public function getContractList(){
        return $this->sendRequest('/api/merchant/contract/getList',['serviceId'=>$this->serviceId]);
    }

    // 发起签署
    public function sign($params){
        return $this->sendRequest('/api/merchant/employee/syncInfo',$params);
    }

    // 确认签署
    public function confirmSign($params){
        return $this->sendRequest('/api/merchant/employee/signContract', $params);
    }

    /***查询合同状态
     * 通过合同模板id查询员工电签结果
     * @param $params
     * @return mixed
     */
    public function getContractStatus($params){
        return $this->sendRequest('/api/merchant/employee/getContractStatus', $params);
    }

    /**通过合同id查询员工电签结果
     * @param $params
     * @return mixed
     */
    public function getContractStatusByContractId($params){
        return $this->sendRequest('/api/merchant/employee/getContractStatusByContractId', $params);
    }


    /***解除签署
     * @param $params
     * @return mixed
     */
    public function deleteContract($params){
        return $this->sendRequest('/api/merchant/employee/deleteContract', $params);
    }

    /**更新员工默认手机号或者账号
     * @param $params
     * @return mixed
     */
    public function updateEmployee($params){
        return $this->sendRequest('/api/merchant/employee/updateEmployee', $params);
    }

    /**员工添加银行卡账号
     * @return void
     */
    public function addBankAccount($params){
        return $this->sendRequest('/api/merchant/employee/addBankAccount', $params);
    }



}
